package pl.softech.gpw.candles.editor.xml;

import java.awt.Rectangle;

import pl.softech.gpw.model.PropertyName;

public class BoundsAttributes {

    private final Rectangle bounds;

    public BoundsAttributes(Rectangle bounds) {
        this.bounds = bounds;
    }

    public BoundsAttributes() {
        this.bounds = new Rectangle();
    }

    @PropertyName(name = "bounds.x")
    public int getX() {
        return bounds.x;
    }

    @PropertyName(name = "bounds.y")
    public int getY() {
        return bounds.y;
    }

    public void setY(int y) {
        this.bounds.y =  y;
    }

    @PropertyName(name = "bounds.width")
    public int getWidth() {
        return bounds.width;
    }

    public void setWidth(int width) {
        this.bounds.width = width;
    }

    @PropertyName(name = "bounds.height")
    public int getHeight() {
        return bounds.height;
    }

    public void setHeight(int height) {
        this.bounds.height = height;
    }

    public void setX(int x) {
        this.bounds.x = x;
    }

    public Rectangle getBounds() {
        return bounds;
    }

    
    
}
